import numpy as np
import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif'] = 'SimHei'
plt.rcParams['axes.unicode_minus'] = False
data = np.load('./Data/2001-2019年劳动力与就业人员数据.npz',encoding='ASCII', allow_pickle=True)

columns = data['arr_0']
values = data['arr_1']
print(type(values))

labels = ['个体就业人数', '私营就业人数']
p = plt.figure(figsize=(6, 6), dpi=100)

plt.bar(range(2), values[9, -2:], width=0.5)
plt.xlabel('类别')
plt.ylabel('就业人数（万人）')
plt.xticks(range(2), labels)
plt.title('2019年个体和私营就业人数柱形图')
plt.show()
